package com.his.bean;

import javax.xml.crypto.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * 支付收费记录
 * @TableName dzm_his_care_paylog
 */
public class DzmHisCarePaylog implements Serializable {
    /**
     *
     */
    private Integer id;

    /**
     * care_pkg.id
     */
    private Integer pkgId;

    /**
     * 支付平台交易单号
     */
    private String platformCode;

    /**
     * 支付方式：0现金，1微信，2支付宝，3，4，5....
     */
    private Short paymentPlatform;

    /**
     * 支付金额
     */
    private BigDecimal payAmount;

    /**
     * 状态，0未支付，1已支付
     */
    private Integer status;

    /**
     * 添加时间
     */
    private String addtime;

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Integer getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * care_pkg.id
     */
    public Integer getPkgId() {
        return pkgId;
    }

    /**
     * care_pkg.id
     */
    public void setPkgId(Integer pkgId) {
        this.pkgId = pkgId;
    }

    /**
     * 支付平台交易单号
     */
    public String getPlatformCode() {
        return platformCode;
    }

    /**
     * 支付平台交易单号
     */
    public void setPlatformCode(String platformCode) {
        this.platformCode = platformCode;
    }

    /**
     * 支付方式：0现金，1微信，2支付宝，3，4，5....
     */
    public Short getPaymentPlatform() {
        return paymentPlatform;
    }

    /**
     * 支付方式：0现金，1微信，2支付宝，3，4，5....
     */
    public void setPaymentPlatform(Short paymentPlatform) {
        this.paymentPlatform = paymentPlatform;
    }

    /**
     * 支付金额
     */
    public BigDecimal getPayAmount() {
        return payAmount;
    }

    /**
     * 支付金额
     */
    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    /**
     * 状态，0未支付，1已支付
     */


    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
/**
     * 添加时间
     */
    @Override
    public String toString() {
        return "DzmHisCarePaylog{" +
                "id=" + id +
                ", pkgId=" + pkgId +
                ", platformCode='" + platformCode + '\'' +
                ", paymentPlatform=" + paymentPlatform +
                ", payAmount=" + payAmount +
                ", status=" + status +
                ", addtime='" + addtime + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DzmHisCarePaylog that = (DzmHisCarePaylog) o;
        return id.equals(that.id) &&
                pkgId.equals(that.pkgId) &&
                platformCode.equals(that.platformCode) &&
                paymentPlatform.equals(that.paymentPlatform) &&
                payAmount.equals(that.payAmount) &&
                status.equals(that.status) &&
                addtime.equals(that.addtime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, pkgId, platformCode, paymentPlatform, payAmount, status, addtime);
    }
}